#include "pg_base.hpp"

PgBase::PgBase(QWidget* parent, const std::string& name_)
    :QWidget(parent)
    , name(name_)
    , logger(spdlog::default_logger())
{
    QString qss_style;
    if(SgtStyle::getInstance()->get_style(qss_style,SgtStyle::SORT::GLOBAL)){
        setStyleSheet(qss_style);
    }
    logger->info("pg {} inited", name);
}

PgBase::~PgBase()
{

}